//
//  NSDate+TimeStamp.m
//  OMTCoreKit
//
//  Created by 昭荣伊 on 2018/7/27.
//

#import "NSDate+TimeStamp.h"

@implementation NSDate (TimeStamp)

- (long long)omt_milliscondTimeIntervalSince1970 {
    NSTimeInterval timeInterval = [self timeIntervalSince1970];
    long long milliscond = timeInterval * 1000;
    return milliscond;
}

+ (NSInteger)omt_currentTimeIntervalSince1970 {
    return [[NSDate date] timeIntervalSince1970];
}

+ (long long)omt_currentMilliscondTimeIntervalSince1970 {
    NSDate *date = [NSDate date];
    return [date omt_milliscondTimeIntervalSince1970];
}

@end
